
** Replication Code for:

** Terrorism Activates Ethnocentrism to Explain Greater Willingness to 
** Sacrifice Civil Liberties: Evidence from Germany

** Authors: Christina Novak Hansen and Peter Thisted Dinesen 

** Date: 10/02/2021


/*This study uses a subset of the following data file:
Stefan Bauernschuster, Andreas Diekmann, Andreas Hadjar, Karin Kurz, 
Ulrich Rosar, Ulrich Wagner, & Bettina Westle (2018). German General 
Social Survey - ALLBUS 2016. GESIS Datenarchiv, Köln. ZA5252 Datenfile 
Version 2.1.0 DE(2017), doi:10.4232/1.12837. 
*/

	
clear all
set scheme s1mono
set printcolor asis
graph set window fontface "Times"


				*CONTENTS

*Put in the path to the folder with the stored data files here:
cd "C:\Users\CNovakhansen\Dropbox\2. Political Science\Artikel_ethno_2019\PSRM\Revision 1\Data for submission"
set more off
			
*To prepare variables run: 
*do "2. Data preparation.do"

*To recreate main results run:
do "3. Results.do"

*For additional analyses run:
do "Appendix_B.do"
do "Appendix_C.do"
do "Appendix_E.do"
do "Appendix_F.do"
do "Appendix_I.do"
do "Appendix_J.do"
do "Appendix_K.do"
do "Appendix_L.do"
do "Appendix_M.do"		
do "Appendix_N.do"
do "Appendix_O.do"
do "Appendix_P.do"
do "Appendix_Q.do"
do "Appendix_R.do"
do "Appendix_S.do"
do "Appendix_T.do"
			
				
				